﻿using RBAC.Domain.Service.Interfae;
using RBAC.Repository.Interfae;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Impl
{
    public class LeaveTypeService : ILeaveTypeService
    {
        private readonly ILeaveTypeRepository _leaveTypeRepository;
        public LeaveTypeService(ILeaveTypeRepository leaveTypeRepository)
        {
            _leaveTypeRepository = leaveTypeRepository;
        }

        /// <summary>
        /// 显示请假类别
        /// </summary>
        /// <returns></returns>
        public async Task<List<LeaveTypes>> LeaveTypesList()
        {
           return await _leaveTypeRepository.GetAllAsync();
        }
    }
}
